﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="simpleDateReport.aspx.cs"
    Inherits="TestDataReport_BatchDataReport_simpleDateReport" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="content-type" content="application/ms-excel; charset=UTF-8" />
<head id="Head1" runat="server">
    <title>数据导出</title>
    <link rel="shortcut icon" href="~/Images/antenna.png" />
</head>
<body>
    <form id="form1" runat="server">

    <script type="text/javascript" src="../../js/my97datepicker/WdatePicker.js"></script>

    <div>
        <asp:SiteMapPath ID="SiteMapPath1" runat="server">
        </asp:SiteMapPath>
        <br />
        <br />
        <br />
        <asp:Label ID="Label1" runat="server" Text="产品序列号："></asp:Label>
        <asp:TextBox ID="ProSN" runat="server" Height="19px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
            ID="RequiredFieldValidator1" runat="server" ControlToValidate="ProSN" ErrorMessage="*"
            ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;
        <asp:Button ID="ProSNSerach" runat="server" Text="搜索" OnClick="ProSNSerach_Click"
            Width="46px" ValidationGroup="VGroup1" />&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label2" runat="server" Text="产品代码："></asp:Label>
        <asp:TextBox ID="ProTypeID" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ProTypeID"
            ErrorMessage="*" ValidationGroup="VGroup2"></asp:RequiredFieldValidator>
        &nbsp;
        <asp:Button ID="ProTypeIDSerach" runat="server" Text="搜索" Width="50px" OnClick="ProTypeIDSerach_Click"
            ValidationGroup="VGroup2" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button1" runat="server" Text="数据导出" Height="40px" Width="70px" OnClick="Button1_Click" />
        <br />
        <br />
        <asp:Label ID="Label3" runat="server" Text="MO：" Width="76"></asp:Label>
        &nbsp;
        <asp:TextBox ID="ProMO1" runat="server" ValidationGroup="VGroup3"></asp:TextBox>
        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ProMO1"
            ErrorMessage="*" ValidationGroup="VGroup3"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;
        <asp:Button ID="MOSerach" runat="server" Text="搜索" Width="42px" 
            OnClick="MOSerach_Click" ValidationGroup="VGroup3" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        
        <asp:Label ID="Label11" runat="server" Text="起始时间："></asp:Label>
        &nbsp;<input type="text" runat="server" id="sDate" onfocus="WdatePicker({sDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="sDate"
            ErrorMessage="*" ValidationGroup="VGroup4"></asp:RequiredFieldValidator> 
        <asp:Label ID="Label12" runat="server" Text="截止时间："></asp:Label>
        &nbsp;<input type="text" runat="server" id="eDate" onfocus="WdatePicker({eDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="eDate"
            ErrorMessage="*" ValidationGroup="VGroup4"></asp:RequiredFieldValidator> 
        <asp:Button ID="CompoundSearch1" runat="server" Height="28px" Text="搜索" OnClick="DTSearch_Click"
            Width="72px" ValidationGroup="VGroup4" />
        <br />
        <br />
        <asp:Label ID="Label4" runat="server" Text="MO：" Width="76"></asp:Label>
        &nbsp;
        <asp:TextBox ID="ProMO2" runat="server"></asp:TextBox>
        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="ProMO2"
            runat="server" ErrorMessage="*" ValidationGroup="VGroup5"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label5" runat="server" Text="起始时间："></asp:Label>
        &nbsp;<input type="text" runat="server" id="startDate" 
        onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
         <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="startDate"
            ErrorMessage="*" ValidationGroup="VGroup5"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label7" runat="server" Text="截止时间："></asp:Label>
        &nbsp;<input type="text" runat="server" id="endDate" onfocus="WdatePicker({endDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
         <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="endDate"
            ErrorMessage="*" ValidationGroup="VGroup5"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="CompoundSearch" runat="server" Height="28px" Text="复合搜索" OnClick="CompoundSearch_Click"
            Width="72px" ValidationGroup="VGroup5" />
        <br />
        <asp:Label ID="Label8" runat="server" Text="测试员：" Width="76"></asp:Label>
        &nbsp;
        <asp:TextBox ID="TBUser" runat="server"></asp:TextBox>
        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="TBUser"
            runat="server" ErrorMessage="*" ValidationGroup="VGroup6"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label9" runat="server" Text="起始时间："></asp:Label>
        &nbsp;<input type="text" runat="server" id="startTime" onfocus="WdatePicker({startTime:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
          <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="startTime"
            ErrorMessage="*" ValidationGroup="VGroup6"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label10" runat="server"
            Text="截止时间："></asp:Label>
        &nbsp;<input type="text" runat="server" id="endTime" onfocus="WdatePicker({endTime:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
         <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="endTime"
            ErrorMessage="*" ValidationGroup="VGroup6"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="CompoundSearch0" runat="server" Height="28px" Text="复合搜索" OnClick="UserAndDTSearch_Click"
            Width="72px" ValidationGroup="VGroup6" />
        <br />
        <hr style="border: 6 outset #ff0033" width="100%" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
    <br />
    <%--    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
        CellSpacing="1" DataKeyNames="MOID,ProductSN,ProductTypeID,PIMRecordTime,RecordTime,PIMAngle,
            PIMName,PIMValue,PIMFreq,TestAngle,TestItemName,TestTypeName,VSWR,ISO,HighSpec,LowSpec,TestBand"
        EmptyDataText="没有相关数据！" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging"
        PageSize="25" Width="100%">
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <Columns>
            <asp:TemplateField HeaderText="序号" InsertVisible="False">
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# this.GridView1.PageIndex * this.GridView1.PageSize + this.GridView1.Rows.Count + 1%>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="MOID" HeaderText="批次号（MO）" />
            <asp:BoundField DataField="ProductSN" HeaderText="产品序列号" />
            <asp:BoundField DataField="ProductTypeID" HeaderText="产品代码" />
            <asp:BoundField DataField="PIMRecordTime" DataFormatString="{0:g}" HeaderText="交调测试日期" />
            <asp:BoundField DataField="RecordTime" DataFormatString="{0:g}" HeaderText="电性能测试日期" />
            <asp:BoundField DataField="PIMAngle" HeaderText="交调测试角度" />
            <asp:BoundField DataField="PIMName" HeaderText="交调测试端口" />
            <asp:BoundField DataField="PIMValue" HeaderText="交调测试值" />
            <asp:BoundField DataField="PIMFreq" HeaderText="交调测试频率" />
            <asp:BoundField DataField="TestAngle" HeaderText="电性能测试角度" />
            <asp:BoundField DataField="TestItemName" HeaderText="电性能测试端口" />
            <asp:BoundField DataField="TestTypeName" HeaderText="电性能测试类型" />
            <asp:BoundField DataField="VSWR" HeaderText="驻波测试值" />
            <asp:BoundField DataField="ISO" HeaderText="隔离测试值" />
            <asp:BoundField DataField="HighSpec" HeaderText="上限值" />
            <asp:BoundField DataField="LowSpec" HeaderText="下限值" />
            <asp:BoundField DataField="TestBand" HeaderText="电性能测试频段" />
        </Columns>
        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
        <RowStyle BackColor="#DEDFDE" Wrap="False" />
        <SelectedRowStyle Wrap="False" />
        <HeaderStyle Wrap="False" />
    </asp:GridView>--%>
    <asp:GridView ID="GridView1" runat="server">
        <RowStyle Wrap="False" />
        <SelectedRowStyle Wrap="False" />
        <HeaderStyle Wrap="False" />
    </asp:GridView>
    <br />
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <asp:HiddenField runat="server" ID="Hiddenstr" />
    </form>
</body>
</html>
